<?php
// define array
$profile = array(
  "fname" => "Susan",
  "lname" => "Doe",
  "age" => 23,
  "action" => "Management"
);
/*
Array
(
    [action] => Management
    [age] => 23
    [fname] => Susan
    [lname] => Doe
)
*/
krsort($profile);
print_r($profile);

